﻿using Basic.UserModel.DB;
using Basic.UserModel.WxUser;

namespace Basic.UserRepository
{
    public interface IWxUserRepository : IUserBaseRepository<DBWxUser, long>
    {
        void Bind (long id, long userId, long cancelId);
        void Bind (long id, long userId);
        void CancelBind (long[] ids);
        void CancelBind (long id);
        BindWxUser FindBindWxUser (long thirdId, long userId);
        long[] FindId (long userId);
        T FindWxUser<T> (long thirdId, string openId) where T : class, new();
        long RegWxUser (WxUserBase add);
    }
}